package com.yuanfeng.activity.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.vo.goods.NoneGoodsQueryDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ActivityNoneSlideController
 * @Description
 * @Author hyq
 * @Date 2023/8/2 11:00
 * @Version 1.0
 **/
@RestController
@RequestMapping("activity/slide")
public class ActivityNoneSlideController extends BaseController{


    /**
     * 查询自营专区轮播
     *
     * @return
     */
    @PostMapping("/query")
    public ResponseResult queryNoneSlide(@RequestBody NoneGoodsQueryDTO param) {
        ResponseResult result=activityNoneSlideService.queryNoneSlide(param);
        return result;
    }

    /**
     * 编辑自营专区轮播
     *
     * @return
     */
    @PostMapping("/update")
    public ResponseResult updateSlideNone(@RequestBody NoneGoodsQueryDTO param) {
        ResponseResult result=activityNoneSlideService.updateSlideNone(param);
        return result;
    }

    /**
     * 删除自营专区轮播
     *
     * @return
     */
    @PostMapping("/delete")
    public ResponseResult deleteNoneSilde(@RequestBody NoneGoodsQueryDTO param) {
        ResponseResult result=activityNoneSlideService.deleteNoneSilde(param);
        return result;
    }
}
